<template>
  <div class="page user">
    <h1>用户信息</h1>
    <p>用户id:{{ id }}</p>
    <p>用户id:{{ $route.params.id }}</p>
  </div>
</template>

<script setup>
import { useRoute } from 'vue-router'
const route = useRoute()
const id = route.params.id
</script>

<style scoped>
.user {
  text-align: center;
  color: #ff5722;
}
</style>
